<?php include("../../data/mysql.class.php")?>
<?php include("../../data/Function.php")?>
<?php
    if(isset($_POST["Type"])){
        $Type=$_POST["Type"];
    }else{
        $Type="error";
    }
	
	$conn=new Mysql();
	switch($Type){
		case "delete":
		if($conn->query("delete from d_guest where id =".$_POST["id"])){
			echo 1;
			}else{
				echo 0;
				}
		break;

		default:
		break;
		}
?>